import { Card, Table, Button, Rate } from 'antd';

export default function SupplierEvaluation() {
  const columns = [
    {
      title: '评估项目',
      dataIndex: 'item',
    },
    {
      title: '评估分数',
      render: () => <Rate defaultValue={4} disabled />,
    },
    {
      title: '评估时间',
      dataIndex: 'date',
    },
    {
      title: '操作',
      render: () => (
        <Button type="link">详情</Button>
      ),
    },
  ];

  return (
    <div style={{ padding: 24 }}>
      <Card title="供应商评估">
        <Button type="primary" style={{ marginBottom: 16 }}>新建评估</Button>
        <Table columns={columns} rowKey="id" />
      </Card>
    </div>
  );
}